package com.etc.dynamic;

public class TestMain2 {
    public static void main(String[] args) {
        ITarget target = new Target();
        JDKDynamicProxy proxyfactry = new JDKDynamicProxy(target);

        ITarget proxy = proxyfactry.newInstance();
        proxy.aaa();
        proxy.bbb();
        System.out.println(proxy.getClass());
    }
}
